package aop.AfterReturningAdvice;

import java.lang.reflect.Method;

import org.apache.log4j.Logger;
import org.springframework.aop.AfterReturningAdvice;

public class LoggingAfterAdvice implements AfterReturningAdvice {
	private Logger log = Logger.getLogger(getClass());
	
	public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
		log.info("The method " + method.getName() + "() ends with " + returnValue);
	}

}
